<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
//header("Content-Type: application/xml; charset=utf-8");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<!--<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">-->
    <meta name="author" content="Anuradha Fernando" />
    <meta name="generator" content="ZDE 5.5.1" />
    <title>Warner Travellers Admin section - Home page</title>
    <link rel="stylesheet" type="text/css" href="/css/admin/bc-styles.css" title="Blue Haze stylesheet" />

    <link rel="stylesheet" type="text/css" href="/css/popup.css" />
    <link rel="stylesheet" href="/css/jquery-ui.css" />
	<link rel="stylesheet" href="/css/ui.theme.css" />
	<link rel="stylesheet" href="/css/jquery.fileupload-ui.css">
    <!-- Tree View Menu Script -->
    <link rel="stylesheet" href="/css/admin/jquery.treeview.css" />
    <link rel="stylesheet" href="/css/admin/busybox.css" />
    <link rel="stylesheet" href="/css/jqpopup.css" />
	<script src="/js/jquery-1.5.2.js" type="text/javascript"></script>
	<script src="/js/script.js" type="text/javascript"></script>
	<script src="/js/jquery.busybox.js" type="text/javascript"></script>
	<!--<script src="/js/jquery.cookie.js" type="text/javascript"></script>-->
	<script src="/js/jquery.treeview.js" type="text/javascript"></script>
	<script src="/js/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/js/jquery.fileupload.js" type="text/javascript"></script>
    <script src="/js/jquery.fileupload-ui.js" type="text/javascript"></script>
    <script src="/js/file_uploader.js" type="text/javascript"></script>
    <script src="/js/change_password.js" type="text/javascript"></script>
    <script src="/js/jquery.bgiframe.min.js" type="text/javascript"></script>
    <script src="/js/jqDnR.min.js" type="text/javascript"></script>
    <script src="/js/jquery.jqpopup.min.js" type="text/javascript"></script>
    <script src="/js/jquery.corner.js" type="text/javascript"></script>
    <script src="/js/jquery.MultiFile.js" type="text/javascript"></script>

	<script type="text/javascript">
		$(function() {
			$("#tree").treeview({
				collapsed: true,
				animated: "fast",
				control:"#sidetreecontrol",
				prerendered: true,
				persist: "location"
			});
		})

		$(".sideBox").corner();
		$(".calBox").corner();


	</script>
    <!-- Calander Script -->
    <link rel=stylesheet href="/css/admin/calendarPicker.css" type="text/css" media="screen">
    <script type="text/javascript" src="/js/jquery.calendarPicker1.js"></script>
    <link rel=stylesheet href="/css/fileuploader.css" type="text/css" media="screen">
    <script type="text/javascript" src="/js/ajaxfileupload.js"></script>
</head>

  <body>
    <div id="top"></div>

    <!-- ###### Header ###### -->

    <div id="header"><div class="header">
	  <div class="logo"><a href="#"></a></div>
      <div class="menuBar">
		  <ul>
		  		<li><a href="/admin/index" id="home">Home</a>
		  <!-- The strange spacing herein prevents an IE6 whitespace bug. -->
			 <li><a href="javascript:void(0);" onclick="loadModule('/admin/user')" id="users">Users</a>
			     <!--<ul>
				    <li><a href="#">Manage Users</a></li>
				</ul>-->
			 </li>
			 <li><a href="javascript:void(0);" onclick="loadModule('/admin/newsletter')" id="newsletters">Newsletters</a>
				<!--<ul>
				  <li><a href="#">Manage Newsletters</a></li>
				</ul>-->
			 </li>
			 <li><a href="javascript:void(0);" onclick="loadModule('/admin/template')" id="templates">Templates</a>
			     <!--<ul>
				  <li><a href="#">Manage Templates</a></li>
				</ul>-->
			 </li>
			 <li><a href="javascript:void(0);" onclick="loadModule('/admin/hotel')" id="hotels">Hotels</a>
				<ul>
				   <li><a href="javascript:void(0);" onclick="loadModule('/admin/roomcats')">Room Categories</a></li>
				</ul>
			 </li>
			 <li><a href="javascript:void(0);" onclick="loadModule('/admin/tour')" id="tours">Tours</a></li>
			 <li><a href="javascript:void(0);" onclick="loadModule('/admin/aboutcountry')" id="about_srilanka">About Sri Lanka</a></li>
			 <li><a href="javascript:void(0);" onclick="loadModule('/admin/translate')" id="users">Languages</a></li>
			 <li><a href="javascript:void(0);" onclick="loadModule('/admin/excursion')" id="users">Excursion</a></li>
                         <li><a href="javascript:void(0);" onclick="loadModule('/admin/campaign')" id="users">Camping</a></li>
                         <li><a href="javascript:void(0);" onclick="loadModule('/admin/specialtext')" id="users">Special Text</a></li>
                         
		  </ul>
      </div>
	    <span class="headerTitle">Control Panel</span>
    </div></div>

    <!-- ###### Side Boxes ###### -->
    <?php
    	if(Zend_Auth::getInstance()->hasIdentity()) {
    ?>
    <div class="sideBox LHS">
        <h2>Welcome Admin..</h2>
        <span class="log-image"><a href="javascript: void(0);" id="upload_photo"><img src="/images/admin/be-logimage.jpg" alt=""/></a></span>
        <p class="log-txt" style="">
           You logged as <?php echo Zend_Auth::getInstance()->getStorage()->read()->userlevel; ?> <br/>
           <span class="logout"><a href="/admin/index/logout">Logout</a></span>
        </p>
    </div>



    <div id="dialog-form" title="Admin Profile Picture">
        <p id="f1_upload_process">Loading...<br/><img src="loader.gif" /></p>
        <p id="result"></p>
        <form action="/admin/index/adminprofileimage/" method="post" enctype="multipart/form-data" target="upload_target" onsubmit="startUpload();" >
            File: <input name="myfile" type="file" />
            <input type="submit" name="submitBtn" value="Upload" />
        </form>
        <iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
    </div>

    <div class="sideBox LHS">
      <h1>Main Menu</h1>
      <div id="sidetreecontrol" class="sidetreecontrol"><a href="?#">Collapse All</a> | <a href="#">Expand All</a></div>
      <ul class="treeview" id="tree">
        <li class="expandable"><div class="hitarea expandable-hitarea"></div><a href="javascript:void(0);" onclick="loadModule('/admin/user')" id="users">User Management</a>
        </li>
         <li class="expandable"><div class="hitarea expandable-hitarea"></div><a href="javascript:void(0);" onclick="loadModule('/admin/newsletter')">Newsletter Management</a>
        </li>
         <li class="expandable"><div class="hitarea expandable-hitarea"></div><a href="javascript:void(0);" onclick="loadModule('/admin/template')">Template Management</a>
        </li>
        <li class="expandable"><div class="hitarea expandable-hitarea"></div><a href="javascript:void(0);" onclick="loadModule('/admin/hotel')">Hotel Management</a>
            <ul style="display: none;">
                <li><a href="javascript:void(0);" onclick="loadModule('/admin/roomcats')">Room Categories</a></li>
            </ul>
        </li>
        <li class="expandable"><div class="hitarea expandable-hitarea"></div><a href="javascript:void(0);" onclick="loadModule('/admin/tour')">Tour Management</a>
        </li>
        <li class="expandable"><div class="hitarea expandable-hitarea"></div><a href="javascript:void(0);" onclick="loadModule('/admin/aboutcountry')">About Sri Lanka</a>
        </li>
        <li class="expandable"><div class="hitarea expandable-hitarea"></div><a href="javascript:void(0);" onclick="loadModule('/admin/hotdeals')">Hot Deals</a>
        </li>
        <?php if(Zend_Auth::getInstance()->getStorage()->read()->userlevel == "superadmin") { ?>
        <li class="last"><div class="hitarea expandable-hitarea"></div><a href="javascript:void(0);" onclick="loadModule('/admin/translate')">Language Management</a></li>
        <?php } else { ?>
        <li class="last"><a href="javascript:void(0);" onclick="loadModule('/admin/translate')">Language Management</a></li>
        <?php } ?>
        <!--<?php //if(Zend_Auth::getInstance()->getStorage()->read()->userlevel == "superadmin") { ?>
        <li class="last"><a href="javascript:void(0);" onclick="loadModule('/admin/permission');">Permission Management</a></li>
        <?php //} ?>-->
      </ul>
    </div>

    <!-- ###### Calender aria ###### -->
    <div class="emptyBox LHS" style="padding:0 0 5px 0;">
      <div id="dsel1" style="width:209px"></div>
        <script type="text/javascript" src="/js/jquery.calendarPicker2.js"></script>
    </div>

    <!-- ###### Analog Clocks aria ###### -->
    <div class="emptyBox LHS">
        <a href="#" style="width:190px; height:90px; display:block; background-color:transparent; cursor:auto; position:absolute; z-index:1;"></a>
        <div class="clock-set">
		  <script type="text/javascript" src="/js/clock-sl.js"></script>
          <script type="text/javascript" language="JavaScript">objLK=new Object;objLK.wtsclock="wtsclock001.swf";objLK.color="FFCC33";objLK.wtsid="LK";objLK.width=90;objLK.height=90;objLK.wmode="transparent";showClock(objLK);
          </script>
          <h1><b>Sri Lanka</b><br/>Colombo</h1>
        </div>

        <div class="clock-set" style="margin-left:10px;">
		  <script type="text/javascript" src="/js/clock-sl.js"></script>
          <script type="text/javascript" language="JavaScript">objRUMOW=new Object;objRUMOW.wtsclock="wtsclock001.swf";objRUMOW.color="6495ED";objRUMOW.wtsid="RU-MOW";objRUMOW.width=90;objRUMOW.height=90;objRUMOW.wmode="transparent";showClock(objRUMOW);
          </script>
          <h1><b>Russia</b><br/>Moscow</h1>
        </div>
    </div>

    <!-- ###### Right Top Blue aria ###### -->
    <div class="bodytext-nav">
         <div class="rootpath" style="color:#FFF; font-size:16px; height: 15px;">&nbsp;</div>

         <div class="main-icoset">
            <a href="/admin/index" title="Home page"><img src="/images/admin/home.gif"  alt=""/></a>
            <a href="#" title="Live Chat"><img src="/images/admin/chat.gif"  alt=""/></a>
            <a href="#" title="My Calender"><img src="/images/admin/calendar.gif"  alt=""/></a>
            <a href="#" title="Help"><img src="/images/admin/help.gif"  alt=""/></a>
            <a href="/admin/index/logout" title="Logout"><img src="/images/admin/log-out-1.gif"  alt=""/></a>
         </div>
    </div>
    <?php
		}
	?>
    <!-- ###### Body Text ###### -->
    <div id="bodyText">
    	<?php echo $this->layout()->content ?>
    </div>


      <!-- <a class="topOfPage" href="#top" title="Top Of Page">top</a> -->
    </div>

    <!-- ###### Footer ###### -->

    <div id="footer">
      <div>
        <p>Copyright © 2011 <a href="#" title="">Warner Travellers (pvt) Ltd.<br /></a>
	    <span>All rights reserved.</span></p>
      </div>
    </div>
  </body>
</html>